﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using GameBase;

namespace GalaxyPresident
{
    public class AutoChaseMissile : Ammo
    {
        private static Texture2D _texture = Constant.content.Load<Texture2D>(@"Resources/Ammo/bomb");
        private static Texture2D _ammoEffectTexture = Constant.content.Load<Texture2D>(@"Resources/Ammo/laserEffect");

        public AutoChaseMissile(PlanetObjectOwner owner)
            : base(owner)
        {
            sprite = new Sprite(_texture, 1, 1);
            Depth = 0.7f;
            _ammoEffect = new VisibleObject(_ammoEffectTexture, 1, 3);
            _ammoEffect.Sprite.IsPlayOneTime = true;
            _ammoEffect.Sprite.Delay = 40;
            speed = 12f;

            Power = 150f;
        }

        public override Ammo clone()
        {
            return new AutoChaseMissile(owner);
        }
    }
}
